package model

// AI对话历史
type AIChatHistory struct {
	BaseModel
	UserId   uint64 `json:"userId" gorm:"type:bigint(20);comment:'用户ID'"`
	Message  string `json:"message" gorm:"type:text;comment:'用户消息'"`
	Response string `json:"response" gorm:"type:text;comment:'AI响应'"`
	Action   string `json:"action" gorm:"type:varchar(128);comment:'执行的操作'"`
	Executed bool   `json:"executed" gorm:"type:tinyint(1);comment:'是否已执行'"`
}

func (AIChatHistory) TableName() string {
	return "ai_chat_history"
}
